package StudyCode.summary.mycollection;

import java.util.Hashtable;
import java.util.Iterator;
import java.util.Set;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class GetSetViewOfKeysFromHashtable {
	public static void main(String[] args) {
		Hashtable ht = new Hashtable();
		ht.put("1", "One");
		ht.put("2", "Two");
		ht.put("3", "Three");
		Set st = ht.keySet();

		System.out.println("Key Set 包含:");
		Iterator itr = st.iterator();
		while (itr.hasNext())
			System.out.println(itr.next());

	}
}
